<template>
  <div v-if="route.query.orderId">
    <Detail />
  </div>
  <div v-else>
    <allOrder />
  </div>
</template>
  
<script lang="ts" setup>
import { useRoute } from "vue-router";
import allOrder from "./allOrder/index.vue";
// @ts-ignore
import Detail from "./detail/index.vue";
let route = useRoute();
</script>
  
<style lang="scss" scoped>
</style>